package com.bayi.storage.utils;

/**
 * @author Administrator on 2023/2/22.
 * <p>
 * 站在顶峰 看世界
 * 落到谷底 思人生
 */
public class IpUtils {

    public static String getIP(String socketAddress) {
        String ip = "";
        if (!StringUtil.isEmpty(socketAddress)) {
            ip = socketAddress.replace("/", "").split(":")[0];
        }
        return ip;
    }
}
